<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ClientesViewDlg" widgetVar="ClientesViewDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.ViewClientesTitle}">

            <h:form id="ClientesViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{clientesController.selected != null}">

                        <h:outputText value="#{myBundle.ViewClientesLabel_codCliente}"/>
                        <h:outputText value="#{clientesController.selected.codCliente}" title="#{myBundle.ViewClientesTitle_codCliente}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_descripcion}"/>
                        <h:outputText value="#{clientesController.selected.descripcion}" title="#{myBundle.ViewClientesTitle_descripcion}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_email}"/>
                        <h:outputText value="#{clientesController.selected.email}" title="#{myBundle.ViewClientesTitle_email}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_telefono}"/>
                        <h:outputText value="#{clientesController.selected.telefono}" title="#{myBundle.ViewClientesTitle_telefono}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_limiteCredito}"/>
                        <h:outputText value="#{clientesController.selected.limiteCredito}" title="#{myBundle.ViewClientesTitle_limiteCredito}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_saldoActual}"/>
                        <h:outputText value="#{clientesController.selected.saldoActual}" title="#{myBundle.ViewClientesTitle_saldoActual}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_ventasCabeceraList}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_ordenesCabeceraList}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_pagosList}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_pagosDetalleList}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_ordenesDetalleList}"/>

                        <h:outputText value="#{myBundle.ViewClientesLabel_pagosCabeceraList}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="ClientesViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
